package com.hu.util

/**
 * @Author: hujianjun
 * @Create Date: 2020/12/15 10:02
 * @Describe:
 */
//object ODPSConnectUtil {
//  def getODPSConn(): Connection = {
//    var conn: Connection = null
//    try {
//      val odpsUrl = s"jdbc:odps:${JobConstant.DEFAULT_ODPS_END_POINT}?project=${JobConstant.DEFAULT_ODPS_PROJECT_NAME}"
//      conn = DriverManager.getConnection(odpsUrl, JobConstant.DEFAULT_ACCESSKEY_ID, JobConstant.DEFAULT_ACCESSKEY_SECRET)
//    } catch {
//      case _: Exception => 0
//    }
//    conn
//  }
//
//  def close(conn: Connection): Unit = {
//    conn.close()
//  }
//}
